<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>添加文章</title><bootstrapcss/><icheckcss/></head>
<body>
    <button onclick="history.back()">后退</button>
     <hr>
    <form class="form-group" action="/index.php/admin.spage/add" method="post">
    <table class="table table-bordered table-striped table-hover table-condensed">
        <tr><th width="80px">所属分类</th><td>
             <select class="form-control modal-sm" name="cid">
                <?php foreach($data as $key => $value) { ?>
                    <option value="<?php  echo $value['id']; ?>"> 
                        <?php $prefixstr=$value["level"]==0?'':'|'; echo $prefixstr.str_repeat("-",$value["level"]*2).$value['name']; ?>
                    </option>
                <?php } ?>
        </select></td></tr>

        <tr><th>标题</th><td> <input class="form-control modal-sm" type="text" name="title"></td></tr>
        <tr><th>副标题</th><td> <input class="form-control modal-sm" type="text" name="subtitle" value="0"></td></tr>
        <!--tr><th>标签</th><td>
            <foreach name="allTag" item="v"> <span class="inputword">{$v['tname']}</span><input class="icheck" type="checkbox" name="tids[]" value="{$v['tid']}"> &emsp;
            </foreach>
            </td></tr-->
        <tr><th>关键词</th><td> <input class="form-control modal-sm" placeholder="多个关键词用顿号分隔" type="text" name="tags"></td></tr>
        <tr><th>描述</th><td><textarea class="form-control modal-sm" name="description" rows="7" placeholder="可以不填，如不填；则截取文章内容前300字为描述"></textarea></td></tr>
        <tr><th>内容</th><td><textarea name="content"></textarea></td></tr>
        <!--tr><th>内容</th><td><ueditor name="content"/></td></tr-->
        <!--tr><th>是否原创</th><td> <span class="inputword">是</span> <input class="icheck" type="radio" name="is_original" value="1" checked="checked"> &emsp; <span class="inputword">否</span> <input class="icheck" type="radio" name="is_original" value="0"></td></tr-->
        <tr><th>是否置顶</th><td> <span class="inputword">是</span> <input class="icheck" type="radio" name="istop" value="1"> &emsp; <span class="inputword">否</span> <input class="icheck" type="radio" name="istop" value="0" checked="checked"></td></tr>
        <tr><th>是否显示</th><td> <span class="inputword">是</span> <input class="icheck" type="radio" name="visible" value="1" checked="checked"> &emsp; <span class="inputword">否</span> <input class="icheck" type="radio" name="visible" value="0"></td></tr>
        <tr><th></th><td> <input class="btn btn-success" type="submit" value="发表"></td></tr>
    </table></form>
    <bootstrapjs/><icheckjs color="blue"/>
</body></html>